package lxyy;
public class Main {
   public static void main(String[] args) {

        // 创建学生对象
       Student  student1 = new Student("222024321072001", "孙琳", "女", 20);
        Student student2 = new Student("222024321072002", "何毕", "男", 21);
        Student student3 = new Student("222024321072003", "彭瑶", "女", 22);

       // 创建课程对象
       Course course1 = new Course("C080602001", "高等数学", "罗老师");
        Course course2 = new Course("C080602002", "大学英语", "李老师");
        Course course3 = new Course("C080602003", "马克思基本主义原理", "邓老师");

        // 修改学生student2的年龄为19
        student2.setAge(19);
        // 修改课程course1的任课教师李老师为陈老师
        course1.setTeacher("陈老师");

       // 展示学生信息
        System.out.println("=======学生信息=======");
        student1.showInfo();
        System.out.println("---------------------");
        student2.showInfo();
       System.out.println("---------------------");
        student3.showInfo();
        System.out.println("---------------------");
       System.out.println("\n\n\n");


       // 展示课程信息
       System.out.println("=======课程信息=======");
       course1.showInfo();
     System.out.println("---------------------");
        course2.showInfo();
       System.out.println("---------------------");
       course3.showInfo();
       System.out.println("---------------------");

   }

}